package com.yhp.service.userservice;

import com.yhp.pojo.OrderStatus;
import com.yhp.pojo.Orders;
import com.yhp.utils.PagedGridResult;
import com.yhp.vo.MyOrderVO;
import com.yhp.vo.OrderStatusCountsVO;

import java.util.List;
import java.util.Map;

public interface CenterOrderService {
    public PagedGridResult queryMyOrders(String userId, String orderStatus,Integer page,Integer pageSize);
    //变更订单状态为商家发货
    public void updateDeliverOrderStatus(String orderId);
    //查询是否是自己的订单
    public Orders queryMyOneOrder(String userId,String orderId);
    //确认收货
    public boolean updateOrderStatusReceived(String orderId);
    //删除订单 逻辑删除
    public boolean updateOrderStausDeleted(String userId,String orderId);

    //查询订单状态数
    public OrderStatusCountsVO getOrderStatusCount(String userId);

    //查询订单动向
    public PagedGridResult getOrderTrend(String userId,Integer page,Integer pageSize);
}
